<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>demo</title>
</head>
<body>
<script type="module">
  import {star} from './m1.js'
  console.log(star)
  // sing('haha') // 不能用
  //   import {star} from './m2.js'  // 变量冲突
  import {star as star2} from './m2.js'
  import {star as star3} from './m3.js'

  console.log(star2)
  console.log(star3)
</script>
</body>
</html>